package com.hlingsoft.cms.entity;

import java.util.Date;

/**
 * Created by selbylei on 2015/5/5.
 */
public class AppUser {
    private long id;
    private String udId;
    private String name;
    private String nickname;
    private String phone;
    private String password;
    private String wechatId;
    private int gender;
    private String address;
    private String signature;
    private String headImage;
    private int level;
    private int isDR;    //0.不是达人 1.申请中 2.达人
    private double latitude;
    private double longitude;
    private Date createTime;
    private Date updateTime;
    private int authorization;
    private int type;
    private int isFocus;   //0.未关注 1.我关注了他 2.他关注了我 3.相互关注
    private int isLikes;   //0.未点赞 1.点赞
    private String showIsDaRen;

    public String getShowIsDaRen() {
        if (this.isDR == 0) {
            return "申请达人";
        } else if (this.isDR == 1) {
            return "达人申请中";
        }else if(this.isDR==2){
            return "您已经是达人";
        }
        return "";
    }

    public void setShowIsDaRen(String showIsDaRen) {
        this.showIsDaRen = showIsDaRen;
    }

    public int getIsDR() {
        return isDR;
    }

    public void  setIsDR(int isDR) {
        this.isDR = isDR;
    }

    public int getIsLikes() {
        return isLikes;
    }

    public void setIsLikes(int isLikes) {
        this.isLikes = isLikes;
    }

    public int getIsFocus() {
        return isFocus;
    }

    public void setIsFocus(int isFocus) {
        this.isFocus = isFocus;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getUdId() {
        return udId;
    }

    public void setUdId(String udId) {
        this.udId = udId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }


    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getWechatId() {
        return wechatId;
    }

    public void setWechatId(String wechatId) {
        this.wechatId = wechatId;
    }

    public int getGender() {
        return gender;
    }

    public void setGender(int gender) {
        this.gender = gender;
    }

    public String getSignature() {
        return signature;
    }

    public void setSignature(String signature) {
        this.signature = signature;
    }

    public String getHeadImage() {
        return headImage;
    }

    public void setHeadImage(String headImage) {
        this.headImage = headImage;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public double getLatitude() {
        return latitude;
    }

    public void setLatitude(double latitude) {
        this.latitude = latitude;
    }

    public double getLongitude() {
        return longitude;
    }

    public void setLongitude(double longitude) {
        this.longitude = longitude;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public int getAuthorization() {
        return authorization;
    }

    public void setAuthorization(int authorization) {
        this.authorization = authorization;
    }
}
